namespace Digitalmes.Common.Result;

/// <summary>
/// 分页结果
/// </summary>
/// <typeparam name="T"></typeparam>
public class PageResult<T>
{
    /// <summary>
    /// 总页数
    /// </summary>
    public long TotalPages { get; set; }

    /// <summary>
    /// 总记录数
    /// </summary>
    public long TotalItems { get; set; }

    /// <summary>
    /// 数据集
    /// </summary>
    [NotNull]
    public List<T>? Items { get; set; }
}
